package org.grow.took.exception;
//使得后台没有抛出异常，前端有异常提示
public class SeptemberException extends RuntimeException{
    private Integer code;//原生的http状态码100-600；大于600可以自定义

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public SeptemberException(String message) {
        super(message);
        this.code = 1024;
    }

    public SeptemberException(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
